Today, there are various statistical models for the discrete simulation of the rainfall occurrence/ nonoccurrence with more emphasizing on long-term climatic statistics. Nevertheless, the accuracy of such models or predictions should be improved in short timescale. In the present paper, it is assumed that the rain falloccurrence/non-occurrence sequences follow a two-layer Hidden Markov Model (HMM) consist of a hiddenlayer (discrete time series of rainfall occurrence and non-occurrence) and an observable layer (weather variables), which is considered as a case study in Khoramabad station during the period of 1961-2005. The Decoding algorithm of Viterbi has been used for simulation of wet/dry sequences. Performance of five weather variables, as the observable variables, including air pressure, vapor pressure, diurnal air temperature, relative humidity and dew point temperature for choosing the best observed variables were evaluated using some measures of error evaluation. Results showed that the variable of diurnal air temperature is the best observablevari able for Decoding process of wet/dry sequences, which detects the strong physical relationship between those variables. Also the Viterbi output was compared with ClimGen and LARS-WG weather generators, in terms of two accuracy measures including similarity of climatic statistics and forecasting skills. Finally, it is concluded that HMM has more skills rather than the other two weather generators in simulation of wet and dry spells. There fore, we recommend the use of HMM instead of two other approaches for generation of wet and drysequences.